<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="css/global.css" type="text/css" />
    <link rel="stylesheet" href="css/forms.css" type="text/css" />
    <link rel="stylesheet" href="css/toolbar.css" type="text/css" />
    <title>TP Final: Formulario Direcciones</title>
</head>
<body>
	<!-- HEADER -->
    <div class="header">
        <nav>
            <ul>
                <li><a href="#">Herramientas</a>
                    <ul>
                        <li><a href="#">Buscar trámite</a></li>
                        <li><a href="#">Buscar cliente</a></li>
                        <li><a href="#">Ver trámites</a></li>
                        <li><a href="#">Ver clientes</a></li>
                        <li><a href="#">Nuevo trámite</a></li>
                        <li><a href="#">Nuevo cliente</a></li>
                    </ul>
                </li>
                <li><a href="#">Salir</a></li>
            </ul>
        </nav>
    </div>
    <!-- MAIN BODY -->
    <div>
	    <h1 class='mainHeader'>Nueva dirección</h1>
	    <logic:messagesPresent>
	    	<h2 class='warningHeader'>Por favor corrija los siguientes errores antes de continuar:</h2>
	    </logic:messagesPresent>
		<html:form action="/addAddress" method="post">
			<fieldset>
				<html:hidden property="oid"/>
				<label for='street'>
					<span class="styledForm">Calle:</span>
					<html:text name="addressForm" property="street" />
					<span class="error"><html:errors property="street"/></span>
				</label>
			    <label for='city'>
			    	<span class="styledForm">Ciudad:</span>
					<html:text name="addressForm" property="city" />
					<span class="error"><html:errors property="city"/></span>
				</label>
			    <label for='state'>
				    <span class="styledForm">Estado/Provincia:</span>
					<html:text name="addressForm" property="state" />
					<span class="error"><html:errors property="state"/></span>
				</label>
			    <label for='country'>
				    <span class="styledForm">País:</span>
					<html:text name="addressForm" property="country" />
					<span class="error"><html:errors property="country"/></span>
				</label>
			    <label for='zipcode'>
				    <span class="styledForm">Código Postal:</span>
					<html:text name="addressForm" property="zipcode" errorStyleClass="error"/>
					<span class="error"><html:errors property="zipcode"/></span>
				</label>
			</fieldset>
	        <div>
	        	<html:submit>Crear</html:submit>
	        </div>
		</html:form>
    </div>
    <!-- FOOTER -->
    
</body>
</html>

